#pragma once



#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"
#include "Widgets/DeclarativeSyntaxSupport.h"



DECLARE_DELEGATE_OneParam(FOnClickedEvent, FString);

class SInputGroupButton : public SCompoundWidget
{

public:
	SLATE_BEGIN_ARGS(SInputGroupButton)
		: _GroupKey(FString("None"))
	{
	}
	SLATE_ATTRIBUTE(FString, GroupKey)
		SLATE_EVENT(FOnClickedEvent, ClickedEvent)

		SLATE_END_ARGS()


public:
	void Construct(const FArguments& InArgs);

	FReply CallClickEvent() const;


private:
	FString GroupKey;
	FOnClickedEvent ClickedEvent;
};